Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve proc override paths in var values #1981

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ike709
Copy link
Collaborator

@ike709 ike709 commented Sep 20, 2024

Gets bay compiling when some of my other PRs are also merged.

Also changes procpaths with /proc/ elements to point at the original declaration, not lateral overrides. In this case a new pragma is emitted if lateral overrides exist.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Sep 20, 2024
Copy link
Contributor

@out-of-phaze out-of-phaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to kind of be based on faulty assumptions. is baystation even on 515 yet?

/atom/movable/proc/foo()
return

/datum/var/bar = /atom/movable/foo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
this errors in DM, it's invalid (tries to find a type rather than a proc)

in 515 and later the proper way to call the latest override (lateral or descended) is via call(nameof(/atom/movable/proc/foo))() (or call(nameof(/atom/movable.proc/foo))(), i don't know why that one is sometimes used? i think it's just a legacy thing)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeating what I said on discord a while back (to keep any PR observers informed), this does work if it's a proc override. My mistake was not erroring when there's no proc override declared.

@ike709 ike709 marked this pull request as draft September 22, 2024 03:18
@github-actions github-actions bot added size/L and removed size/M labels Oct 1, 2024
@ike709 ike709 marked this pull request as ready for review October 1, 2024 17:38
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler Merge Conflict size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants